How to make an object store itself in a hashmap

join shbcf.ru